#ifndef __DEFULTPARAMETER_H__
#define __DEFULTPARAMETER_H__

#define FACTORY_MARK 0X0E291564
#define REINIT_CODE 0x158647

#define FwVer "FW9179-0-10"

#define PROTCOL_VER "\"v1.0\""

#define DEVICE_SN_FLASH_ADDR (127)

#define DEVICE_SN_CHECK_ADDR (127 * 512)

#define DEVICE_SN_MAX_SIZE 26

typedef struct
{
  unsigned short crc;
  char sn_code[DEVICE_SN_MAX_SIZE];
  unsigned int factory_sucess_mark;
} device_sn_t;

unsigned short crc16(void *p_data, int size);
void device_factory_test(void);

#endif
